package com.hzqiuxm.securitydemo.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Copyright © 2016年 author. All rights reserved.
 *
 * @Author 临江仙 hzqiuxm@163.com
 * @Date 2017/10/19 0019 10:46
 */
@RestController
public class UserController {


    @GetMapping
    public String hello(){

        return "hello";
    }

    @GetMapping("/guest")
    public String guest(){

        System.out.println("guest security 002");
        return "guest security 002";
    }

    @GetMapping("/user")
    public String user(){

        System.out.println("user security ");
        return "user security ";
    }

    @GetMapping("/admin")
    public String admin(){

        System.out.println("admin security ");
        return "admin security ";
    }




}
